<?php 

	class Login_model extends CI_Model {
		
		 function __construct()
		{
			// Call the Model constructor
			parent::__construct();
		}
		
		function auth($username, $password)
		{
			$this->db->where("status", "1");
			$this->db->where("username", $username);
			$this->db->where("password", $password);
			$query = $this->db->get('admin_users');
			return  $query->result();
		}
  }
?>